{% extends "admin/base_site.html" %}
{% load i18n admin_modify adminmedia admin_display productos_tags%}

{% block extrahead %}{{ block.super }}

<script language="JavaScript">


$(function() {


$('#submit').click(function() 
		{
		
			window.opener.location.reload();
                        self.close();
		});

	
});


</script>
{{ media }}
{% endblock %}
{% load cheques_tags %}

{% block stylesheet %}{% admin_media_prefix %}css/forms.css{% endblock %}

{% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %}

{% block bodyclass %}

{{ opts.app_label }}-{{ opts.object_name.lower }} change-form 

{% endblock %}

{% block breadcrumbs %}

{% if not is_popup %}
<div class="breadcrumbs">
     <a href="../">{% trans "Home" %}</a> &rsaquo;
     <a href="../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
     {% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
</div>
{% endif %} {% endblock %}


{% block content %}<div id="content-main">
{% block object-tools %}
{% if not is_popup %}
 
  <ul class="object-tools">
  	<li><a href="../" class="backlink">Volver</a></li>
  	{% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
	
</ul>
{% endif %}
<form action="." method="POST">

<table border=1>
<table>
{{f.as_table}}
</table>
</table>

<INPUT TYPE="submit" value="submit" id="submit"> 
</FORM>



</div>
{% endblock %}
<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}
</form></div>
{% endblock %}